function isIp(ip){
	var rul = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}$/;
	if(rul.test(ip)){
		return true;
	}else{
		return false;
	}
}

function alertMsg(msg){
	var obj = document.getElementById("ErrorObject");
	obj.innerHTML = "<li><span style=\"color: red\">" + msg + "</span></li>";
}